package com.fjh.feign.hystrix;

import com.fjh.domain.UserAddr;
import com.fjh.feign.OrderUserAddrFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderUserAddrFeignHystrix implements OrderUserAddrFeign {
    /**
     * 远程调用 获取用户的默认收货地址
     * @param userId
     * @return
     */
    @Override
    public UserAddr getUserDefaultAddr(String userId) {
        log.error("远程调用 获取用户的默认收货地址 失败，用户id为{}", userId);
        return null;
    }
}
